package com.joysuch.wwyt.mh.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author ZhaoQiuWei
 * @Date 2022/5/24 10:59
 */
@Data
public class MhMajorHazardTaskPageVO {

    @ApiModelProperty(value = "编号与assignId一致")
    private Long id;

    @ApiModelProperty(value = "计划id")
    private Long planId;

    @ApiModelProperty(value = "任务id")
    private Long taskId;

    @ApiModelProperty(value = "个人任务id")
    private Long assignId;

    @ApiModelProperty(value = "目标名称")
    private String taskName;

    @ApiModelProperty(value = "周期类型:0周检查 1季度检查")
    private Integer cycleType;

    @ApiModelProperty(value = "检查人员")
    private String checkUserName;

    @ApiModelProperty(value = "完成期限描述")
    private String deadLineDesc;

    @ApiModelProperty(value = "危险源名称")
    private String mhName;

    @ApiModelProperty(value = "任务开始时间")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date taskStratTime;

    @ApiModelProperty(value = "是否有删除按钮权限")
    private boolean deleteButtonFlag = true;

    @ApiModelProperty(value = "是否有履职按钮权限")
    private boolean jobButtonFlag = false;
}
